/*
 * Copyright (C) 2016  Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */


#ifndef PLANET_WARS_2D_RT_SDL2_DRAW_GAME_STATE_H
#define PLANET_WARS_2D_RT_SDL2_DRAW_GAME_STATE_H


#include "PlanetWars2dRT-core/specific/model/game_state.h"
#include <SDL2/SDL_render.h>


#define SELECTION_COLOR_ALPHA_VALUE 60


EXTERN_C_BEGIN


bool
SDL_draw_selection_started_rectangle(SDL_Renderer*            renderer,
				     const selection_2d_uint* selection,
				     FILE*                    error_stream);

bool
SDL_draw_selection(SDL_Renderer*            renderer,
		   const selection_2d_uint* selection,
		   FILE*                    error_stream);

bool
SDL_draw_game_state(SDL_Renderer*       renderer,
		    const game_state_t* a_game_state,
		    FILE*               error_stream);


EXTERN_C_END


#endif
